package com.util;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

//@Data
//@AllArgsConstructor
public class ResultVo <T> {
    // 返回提示信息
    private String msg;
    // 返回状态码
    private int code;
    // 封装的数据信息
    private T Data;

    public ResultVo(String msg, int code, Object data) {
        this.msg = msg;
        this.code = code;
        this.Data = (T) data;
    }

    public void setData(T data) {
        Data = data;
    }
}
